package c.c.b.a.b.a.h;

/* compiled from: ErrorCode */
public enum b {
    NO_ERROR(0),
    PROTOCOL_ERROR(1),
    INTERNAL_ERROR(2),
    FLOW_CONTROL_ERROR(3),
    REFUSED_STREAM(7),
    CANCEL(8);
    
    public final int a;

    public b(int i) {
        this.a = i;
    }

    public static b a(int i) {
        b[] values = values();
        for (int i2 = 0; i2 < 6; i2++) {
            b bVar = values[i2];
            if (bVar.a == i) {
                return bVar;
            }
        }
        return null;
    }
}
